import {createRouter,createWebHashHistory} from 'vue-router'

import autoRoute from './module/autoRoute'
console.log(autoRoute);
const routes = [
    {
        path: '/',
        redirect: '/dashboard',
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/index.vue')
    },

    {
        path: '/404',
        name: '404',
        component: () => import('../pages/404.vue')
    }
]
console.log(routes);

console.log([...routes, ...autoRoute]);
const router = createRouter({
    history: createWebHashHistory(),
    routes:[...routes,...autoRoute]   
   
})


export default router
